<?php


include_once '../sys/core/init.inc.php';

if (isset($_GET['date'])) {
    $cal = new Calendar($dbo, $_GET['date']);
} else {
    $cal = new Calendar($dbo, date('Y-m-d H:i:s'));
}

$page_title = "Events Calendar";
$css_files = array('style.css', 'admin.css', 'ajax.css');
include_once 'assets/common/header.inc.php';
?>

<div id="content">

    <?php
    echo $cal->buildCalendar();
    ?>

</div>
<p>
    <?php
    echo isset($_SESSION['user']) ? "Logged In!" : "Logged Out!";
    ?>
</p>
<?php
include_once 'assets/common/footer.inc.php';
?>